if rx.search(file) and (opts["category"] == "*" or portage.catpkgsplit(pkg)[0] == opts["category"]):
if opts["nameOnly"]:
x = portage.catpkgsplit(pkg)
s = x[0]+"/"+x[1]
else:
s = pkg
s += " (" + pp.path(fileAsStr(file, cnt[file])) + ")"
print_info(0, s)
if opts["earlyOut"]:
raise DummyExp
try:
if Config["piping"]:
map(dumpToPipe, matches)
else:
map(dumpToScreen, matches)
except DummyExp:
pass
def shortHelp(self):
return pp.localoption("<local-opts> ") + pp.path("files...") + " - list all packages owning " + pp.path("files...")
def longHelp(self):
return "List all packages owning a particular set of files" + \
"\n" + \
"\n" + \
pp.emph("Note: ") + "Normally, only one package will own a file. If multiple packages own the same file, it usually consitutes a problem, and should be reported.\n" + \